package routers

import (
	"gvb_server/api"
	"gvb_server/middleware"
)

func (routerGroup RouterGroup) TagsRouter() {
	tagsApi := api.ApiGroupApp.TagApi
	routerGroup.GET("/tags", middleware.JwtAuth(), tagsApi.TagListView)
	routerGroup.POST("/tags", middleware.JwtAuth(), tagsApi.TagCreateView)
	routerGroup.PUT("/tags/:id", middleware.JwtAuth(), tagsApi.TagUpdateView)
	routerGroup.DELETE("/tags", middleware.JwtAuth(), tagsApi.TagRemoveView)
}
